AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')

ENT.TankPoints = 0

function ENT:Initialize()
	self.BaseClass.Initialize(self)
	
	self.Entity:SetMaterial("phoenix_storms/metalfloor_2-3")
	
	if not (WireAddon == nil) then
		self.WireDebugName = self.PrintName
		self.Outputs = Wire_CreateOutputs(self.Entity, { "PN-Fuel", "Max PN-Fuel" })
	end
end

function ENT:TriggerInput(iname, value)
end

function ENT:Think()
	self.BaseClass.Think(self)
	
	if not (WireAddon == nil) then
		self:UpdateWireOutput()
	end
	self.Entity:NextThink(CurTime() + 1)
	return true
end

function ENT:UpdateWireOutput()
	local PNFuel = self:GetResourceAmount("PN-Fuel")
	local maxPNFuel = self:GetNetworkCapacity("PN-Fuel")
	Wire_TriggerOutput(self.Entity, "PN-Fuel", PNFuel)
	Wire_TriggerOutput(self.Entity, "Max PN-Fuel", maxPNFuel)
end

function ENT:OnRemove()
end
